<#noparse>
server:
  port: 8666

spring:
  datasource:
    druid:
      # 配置 DruidStatViewServlet
      stat-view-servlet:
        #不配置的话,enabled默认是关闭,打不开页面的,页面地址 http://localhost:8666/druid
        enabled: true
        url-pattern: /druid/*
#        # IP 白名单，没有配置或者为空，则允许所有访问
        allow: 127.0.0.1
#        # IP 黑名单，若白名单也存在，则优先使用
#        deny: 192.168.31.253
        # 禁用 HTML 中 Reset All 按钮
        reset-enable: false
        # 登录用户名/密码
        login-username: root
        login-password: root
#多数据源
    dynamic:
      #默认数据源
      primary: master
      #在这里再配置druid
      druid:
        # 初始化大小，最小，最大
        initial-size: 5
        min-idle: 5
        max-active: 20
        # 配置获取连接等待超时的时间
        max-wait: 60000
        # 配置间隔多久才进行一次检测，检测需要关闭的空闲连接，单位毫秒
        time-between-eviction-runs-millis: 60000
        # 配置一个连接在池中最小生存时间
        min-evictable-idle-time-millis: 300000
        validation-query: SELECT 1 FROM DUAL
        test-while-idle: true
        test-on-borrow: false
        test-on-return: false
        # 打开 PSCache，并且指定每个连接上 PSCache 的大小
        pool-prepared-statements: true
        max-pool-prepared-statement-per-connection-size: 20
        # 配置监控统计拦截的 Filter，去掉后监控界面 SQL 无法统计，wall 用于防火墙
        filters: stat,wall,slf4j
        # 通过 connection-properties 属性打开 mergeSql 功能；慢 SQL 记录
        connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
      datasource:
        master:
          username: ENC(E+yyRAnAXcOoihfSogh064FuFRBPZ8XS+G7rHF6wDQo+DQdBLE8U5rGMDFGuncAoNLFP7Il238/W4F8PswXxSQ==)
          password: ENC(CQP1RQtWnfR5ipFYnIRSqJgu68laY4DopVfXk3Vuhoy+ROeJvmkMeUBK/Q6cTaOcqrUWhUHA9oX/ipUyw8e87w==)
          driver-class-name: com.mysql.cj.jdbc.Driver
          url: jdbc:mysql://10.91.22.8:33066/chinaunicom_base_framework?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
         #配置文件所有以下划线 _ 分割的数据源 首部 即为组的名称，相同组名称的数据源会放在一个组下
#        slave_1:
#          username: ENC(E+yyRAnAXcOoihfSogh064FuFRBPZ8XS+G7rHF6wDQo+DQdBLE8U5rGMDFGuncAoNLFP7Il238/W4F8PswXxSQ==)
#          password: ENC(CQP1RQtWnfR5ipFYnIRSqJgu68laY4DopVfXk3Vuhoy+ROeJvmkMeUBK/Q6cTaOcqrUWhUHA9oX/ipUyw8e87w==)
#          driver-class-name: com.mysql.cj.jdbc.Driver
#          url: jdbc:mysql://10.91.22.8:33066/chinaunicom_base_framework_slave1?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
#        slave_2:
#          username: ENC(E+yyRAnAXcOoihfSogh064FuFRBPZ8XS+G7rHF6wDQo+DQdBLE8U5rGMDFGuncAoNLFP7Il238/W4F8PswXxSQ==)
#          password: ENC(CQP1RQtWnfR5ipFYnIRSqJgu68laY4DopVfXk3Vuhoy+ROeJvmkMeUBK/Q6cTaOcqrUWhUHA9oX/ipUyw8e87w==)
#          driver-class-name: com.mysql.cj.jdbc.Driver
#          url: jdbc:mysql://10.91.22.8:33066/chinaunicom_base_framework_slave2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  #kafka配置
  kafka:
    #kafka开关
    enable: true
    bootstrap-servers: 10.93.11.4:9092
    consumer:
      auto-commit-interval: 100
      auto-offset-reset: latest
      enable-auto-commit: true
      group-id: base-framework-group
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
    listener:
      missing-topics-fatal: false
    producer:
      acks: 1
      batch-size: 16
      buffer-memory: 33554432
      key-serializer: org.apache.kafka.common.serialization.StringSerializer
      retries: 3
      value-serializer: org.apache.kafka.common.serialization.StringSerializer
#redis配置
  redis:
    database: 8
    host: 10.91.22.7
    port: 7501
    password: Yhl_Heiheihei0525
    redisson:
      config: classpath:config/redisson.yml
    jedis:
      pool:
        max-active: 100
        max-idle: 10
#xxl-job定时任务调度
xxl:
  #是否启用xxl-job
  isEnable: false
  job:
    executor:
      appname: base-framework-executor
      port: 9997
      logpath: /Users/lleice/Desktop/xxl-logs
      logretentiondays: 7
      ip: 
      address: 
    accessToken: 
    admin:
      addresses: http://localhost:8898/xxl-job-admin
#日志
logging:
  config: classpath:logback-spring.xml
  path: /Users/lleice/Documents/logs
  name: framwork-web
  level:
    com.alibaba.nacos.client.naming: error
    com.alibaba.nacos.client.config.impl.ClientWorker: error
  #请求日志是否保存出参数据
  isSaveReturn: false
</#noparse>